package binary;

public class Demo04 {
    public static void main(String[] args) {
        /*
         * int 类型的编码
         */
        int max = Integer.MAX_VALUE;
        int min = Integer.MIN_VALUE;
        System.out.println(max);
        System.out.println(Integer.toBinaryString(max));
        System.out.println(min);
        System.out.println(Integer.toBinaryString(min));
        int n = -1;
        System.out.println(Integer.toBinaryString(n));
        n = -3;
        System.out.println(Integer.toBinaryString(n));
        n = -28;
        System.out.println(Integer.toBinaryString(n));
    }
}
